package dialog;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.zx.theline.R;

import base.BaseDialog;

/**
 * Created by zx on 2017/4/20.
 */

public class WaitDialog extends BaseDialog {
    TextView msg;

    public WaitDialog(Context context) {
        super(context);

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_wait);
        setCanceledOnTouchOutside(false);
        InitView();
        InitData();
        InitListen();
    }

    @Override
    protected void InitView() {
        msg= (TextView) findViewById(R.id.msg);
    }

    @Override
    protected void InitData() {

    }

    @Override
    protected void InitListen() {
    }

    public void setMsg(String s){
        msg.setText(s);
    }

    @Override
    public void dismiss() {
        super.dismiss();
        msg.setText("请稍等，正在努力加载中");
    }
}
